#ifndef _LIB_RTSPSERVER_API_H
#define _LIB_RTSPSERVER_API_H
#include "commen.h"


#ifdef _WIN32
#define RTSP_SERVER_API __declspec(dllexport)
#else
#define RTSP_SERVER_API
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* 创建RTSPServer句柄  返回0表示成功，返回非0表示失败 */
RTSP_SERVER_API int EasyServer_Init(RTSP_Handle **handle, int port,
                                    const char *streamName,
                                    const char *descriptionString,bool is264/*true:h264;false:h265*/) ;

/* 释放RTSPServer */
RTSP_SERVER_API int EasyServer_Deinit(RTSP_Handle* handle);

/* 发送视频帧 */
RTSP_SERVER_API int MyRTSP_SetStream(
    RTSP_Handle* handle,EASY_VENC_STREAM_T *stream);

//
#ifdef __cplusplus
}
#endif
#endif  //_LIB_RTSPSERVER_API_H
